package com.tianhui.consignortwofei.mvp.ui.activity.editPicture;

import com.tianhui.consignortwofei.constant.ImageType;
import com.tianhui.consignortwofei.mvp.model.enty.OrderInfo;

import java.util.List;
import java.util.Map;

public class EditDeliverBillPictureActivity extends BaseEditPictureActivity {


    @Override
    public String getImageType() {
        return ImageType.TYPE_DELIVER_BILL + "";
    }

    //卸车回单
    @Override
    public Map<String, String> requestMap(Map<String, String> map) {
//        map.put("poundimg", getVehicleImageId());
//        map.put("loadingimg", mOrderInfo.unloadimg);
//        map.put("poundpalce", getAddress());
//        map.put("poundtime", getTime());
//        map.put("type", "2");//1装车，2卸货

        map.put("type", "3");
        map.put("picIds", getVehicleImageId());
        map.put("text", getAddress());
        map.put("newdate", getTime());


        return map;
    }

    @Override
    public String getImageTitle() {
        return "卸车回单";
    }

    @Override
    public List<String> getImageId(OrderInfo orderInfo) {
        String imageId = orderInfo.recepitbill;
        return stringToList(imageId);
    }

    @Override
    public String getAddress() {
        return mOrderInfo.receiveplace;
    }

    @Override
    public String getTime() {
        return mOrderInfo.recelvetime;
    }
}